﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wxcode_edit.aspx.cs" Inherits="MxWeiXinPF.Web.admin.manager.wxcode_edit" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>编辑微信公众号</title>
 <%=PageJSAndStype("edit").ToString() %>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();

          
   //初始化上传控件
        $(".upload-img").InitUploader({ filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });
       
        $(".upload-album").InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });
 
          
            //设置封面图片的样式
            $(".photo-list ul li .img-box img").each(function () {
                if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                    $(this).parent().addClass("selected");
                }
            });

            $("#ddlMaxNum").change(function () {
                var yearNum =Number( $(this).val());
                var price = Number($("#lblagentPrice").text());
                var syMoney = Number($("#lblremainMony").text());
                var ttMoney = yearNum * price;
                if (ttMoney > syMoney) {
                    $("#lblMoney").text(ttMoney+" 余额不足！！");
                }
                else {
                    $("#lblMoney").text(ttMoney);
                }
            });

        });
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="<%=returnPage %>" class="back"><i class="iconfont icon-up"></i><span>返回列表页</span></a>
          <i class="arrow iconfont icon-arrow-right"></i>
            <span>编辑微账号</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="tabs(this);" class="selected">编辑微账号</a></li>
                    </ul>
                </div>
            </div>
        </div>
        
        <div class="tab-content">
             <div class="mytips">
                您剩余金额：<asp:Label ID="lblremainMony" runat="server" Text="0" CssClass="bloder_m"></asp:Label> 元，
                每个微信号每年的价格为 <asp:Label ID="lblagentPrice" runat="server" Text="0" CssClass="bloder_m"></asp:Label> 元
         </div>

            <dl>
                <dt>微帐号Id</dt>
                <dd>
                     <asp:Label ID="lblId" runat="server" Text=""></asp:Label>
                </dd>
            </dl>
             <dl>
                <dt>状态</dt>
                <dd>
                      <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblwStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Selected="True">正常</asp:ListItem>
                            <asp:ListItem Value="0">禁止</asp:ListItem>
                            
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>公众帐号名称</dt>
                <dd>
                    <asp:TextBox ID="txtwxName" runat="server" CssClass="input normal " datatype="*" sucmsg=" " nullmsg="请填写公众帐号名称"></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>公众号原始ID</dt>
                <dd>
                    <asp:TextBox ID="txtwxId" runat="server" CssClass="input normal " datatype="*" sucmsg=" " nullmsg="请填写公众帐号原始ID"></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
            <dl>
                <dt>微信号</dt>
                <dd>
                    <asp:TextBox ID="txtweixinCode" runat="server" CssClass="input normal " datatype="*" sucmsg=" " nullmsg="请填写微信号"></asp:TextBox>
                    <span class="Validform_checktip">*</span></dd>
            </dl>
             <dl>
                <dt>接口地址</dt>
                <dd>
                    <asp:Label ID="txtapiurl" runat="server" Text="" CssClass="input normal"></asp:Label>
                    <span class="Validform_checktip">* 自动生成的地址</span>
                </dd>
            </dl>

             <dl>
                <dt>有效期</dt>
                <dd>
                     创建时间：<asp:Label ID="lblAddDate" runat="server" Text="" ></asp:Label>  <br />
                     到期时间： <asp:Label ID="lblEndDate" runat="server" Text=""  ></asp:Label>
                    
                </dd>
            </dl>
             <dl>
                <dt>增加时间</dt>
                <dd>
                     <div class="rule-single-select">
                    <asp:DropDownList ID="ddlMaxNum" runat="server" datatype="*" errormsg="增加年份" sucmsg=" ">
                        <asp:ListItem Text="0年" Value="0"></asp:ListItem>
                         <asp:ListItem Text="1年" Value="1"></asp:ListItem>
                         <asp:ListItem Text="2年" Value="2"></asp:ListItem>
                         <asp:ListItem Text="3年" Value="3"></asp:ListItem>
                         <asp:ListItem Text="4年" Value="4"></asp:ListItem>
                         <asp:ListItem Text="5年" Value="5"></asp:ListItem>
                         <asp:ListItem Text="6年" Value="6"></asp:ListItem>
                         <asp:ListItem Text="7年" Value="7"></asp:ListItem>
                         <asp:ListItem Text="8年" Value="8"></asp:ListItem>
                         <asp:ListItem Text="9年" Value="9"></asp:ListItem>
                    </asp:DropDownList>
                     </div>
                     <span class="Validform_checktip">*<asp:Literal ID="Literal1" runat="server"></asp:Literal></span>

                </dd>
            </dl>
             <dl>
                <dt>所需费用(元)</dt>
                <dd>
                    <asp:Label ID="lblMoney" runat="server" Text="0"  ></asp:Label>
                </dd>
            </dl>

            <dl>
                <dt>头像</dt>
                <dd>

                    <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input normal upload-path"   />
                    <div class="upload-box upload-img"></div>
                </dd>
            </dl>
           
            <dl>
                <dt>TOKEN值</dt>
                <dd>
                    <asp:TextBox ID="txtwxToken" runat="server" CssClass="input normal" datatype="*" sucmsg=" "  nullmsg="请填写TOKEN值"></asp:TextBox>
                    <span class="Validform_checktip">*与公众帐号官方网站上保持一致</span>
                </dd>
            </dl>
            <dl>

                <dd style="color: #16a0d3;">以下为高级功能配置，非必填项</dd>
            </dl>
            <dl>
                <dt>AppId</dt>
                <dd>
                    <asp:TextBox ID="txtAppId" runat="server" CssClass="input normal"></asp:TextBox>
                </dd>
            </dl>
            <dl>
                <dt>AppSecret</dt>
                <dd>
                    <asp:TextBox ID="txtAppSecret" runat="server" CssClass="input normal"></asp:TextBox>
                </dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                 <a href="<%=returnPage %>"  > <span class="btn yellow">返回上一页</span></a>
                
            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
